package com.sub.project.info.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sub.project.info.prototype.Prototype;
import com.sub.project.info.vo.RestVo;
import lombok.Data;
import com.sub.framework.aspectj.lang.annotation.Excel;

import java.util.Date;

/**
 * 【请填写功能名称】对象 work_experience
 * 
 * @author ruoyi
 * @date 2020-01-07
 */
@Data
@TableName("tb_work_experience")
public class WorkExperience implements Prototype
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String companyName;

    /** 职位 */
    @Excel(name = "职位")
    private String position;

    /** 公司地址 */
    @Excel(name = "公司地址")
    private String companyAddr;

    /** 公司所属行业 */
    @Excel(name = "公司所属行业")
    private String companyPosition;

    /** $column.columnComment */
    @Excel(name = "工资")
    private Double salary;

    /** 是否展示(0 不展示 1 展示） */
    @Excel(name = "是否展示(0 不展示 1 展示）")
    private Integer isShow;

    /** 是否删除 0  删除 1 不删除 */
    @Excel(name = "是否删除 0  删除 1 不删除")
    private Integer isDeleted;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 工作描述 */
    @Excel(name = "工作描述")
    private String describ;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCompanyName(String companyName) 
    {
        this.companyName = companyName;
    }

    public String getCompanyName() 
    {
        return companyName;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setCompanyAddr(String companyAddr) 
    {
        this.companyAddr = companyAddr;
    }

    public String getCompanyAddr() 
    {
        return companyAddr;
    }
    public void setCompanyPosition(String companyPosition) 
    {
        this.companyPosition = companyPosition;
    }

    public String getCompanyPosition() 
    {
        return companyPosition;
    }
    public void setSalary(Double salary) 
    {
        this.salary = salary;
    }

    public Double getSalary() 
    {
        return salary;
    }
    public void setIsShow(Integer isShow) 
    {
        this.isShow = isShow;
    }

    public Integer getIsShow() 
    {
        return isShow;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }


    @Override
    public Prototype clone() {
        RestVo restVo = new RestVo();
        restVo.setContent(this.position);
        restVo.setId(this.id);
        restVo.setName(this.companyName);
        restVo.setRemarks(this.describ);
        restVo.setStartTime(this.startTime);
        restVo.setEndTime(this.endTime);
        return restVo;
    }
}
